const Koa = require("koa")
const bodyParser = require("koa-bodyparser")
const multer = require("koa-multer")

const app = new Koa();

const upload = new multer();


app.use(bodyParser())
app.use(upload.any())

app.use((ctx, next) => {
  console.log(ctx.request.body);
  console.log(ctx.req.body);
  ctx.response.body = "Hello"
})





app.listen(8000, () => {
  console.log("koa初体验服务器启动成功");
})